/**
 * Created by lvlq on 16/1/7.
 */

module.exports = function (app) {
    app.get("*", function (req, res, next) {
        res.locals.share = {
            link: "http://shellwg.weixinzjit.com/index/ani",
            img: "http://shellwg.weixinzjit.com/images/share.png",
            desc: "一分钟教你练就购买高品质润滑油的火眼金睛",
            title: "全新包装 保护如一"
        };
        next();
    });

    app.get("/ani", function (req, res) {
        res.render("index.html");
    });

    app.get("/anitest", function (req, res) {
        res.render("indexrev.html");
    });
};